//
// Created by 77873 on 2020/9/28 0028.
//

#include "PcmDataBean.h"

PcmDataBean::PcmDataBean(SAMPLETYPE *buffer, int size) {
    this->buffer=(char *)malloc(size);
    this->buffsize=size;
    memcpy(this->buffer,buffer,size);
}

PcmDataBean::~PcmDataBean() {
    free(buffer);
    buffer=NULL;
}
